package admin

import "time"

type AdminReq struct {
	UserName string `json:"username" binding:"required"`
	PassWord string `json:"password" binding:"required"`
	RoleIds  string `json:"role_ids"`
	IsAdmin  bool   `json:"is_admin"`
}

type AdminRest struct {
	Id        uint      `json:"id"`
	UserName  string    `json:"username"`
	RoleIds   string    `json:"role_ids"`
	IsAdmin   bool      `json:"is_admin"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

type SoftDeleteReq struct {
	Id uint `json:"id" binding:"required"`
}

type UpdateMyPasswordReq struct {
	Id       int    `json:"id" binding:"required"`
	Password string `json:"password" binding:"required"`
}
